Skip to content

Test Reorganization (and two bugfixes)#14

Merged
syjer merged 4 commits intodigitalfondue:mainfrom
maths22:test-reorg
Dec 21, 2025
Merged

Test Reorganization (and two bugfixes)#14
syjer merged 4 commits intodigitalfondue:mainfrom
maths22:test-reorg

Conversation

@maths22
Copy link
Contributor

@maths22 maths22 commented Dec 20, 2025

This PR reorganizes the tests to be driven by the files that exist in the repository
so that adding a new test case is a matter of simply adding an mjml file to the
appropriate directory. This PR then uses that reorganized framework to fix two minor
bugs that I had previously noticed and worked around.

I'm happy to split the PR into two PRs, or get rid of the test organization part and
just submit the bugfix part. When I was doing the upgrade PR I realized the java part of the tests
was almost all the same and therefore seemed like a good use-case for parameterized tests,
but I understand if that isn't how you want to manage them in this project.

Separate cases into folders by category and use parameterized tests
to automatically run new tests
@syjer
Copy link
Member

syjer commented Dec 20, 2025

Hi @maths22 , thank you again for the pr. I'll have a look tomorrow.

For the test reorganization: good idea to use parameterized tests 👍

@syjer syjer merged commit cdd6c70 into digitalfondue:main Dec 21, 2025
3 checks passed
@syjer
Copy link
Member

syjer commented Dec 21, 2025

Thank you for the PR, I'll do a release during next week :)

@maths22
Copy link
Contributor Author

maths22 commented Jan 14, 2026

@syjer Would it be possible to get a release cut with these fixes in it?

@maths22 maths22 deleted the test-reorg branch January 14, 2026 14:15
@syjer
Copy link
Member

syjer commented Jan 14, 2026

@maths22 , sure. I'll do it today :).

Then this weekend I'll do a release with the mj-html-attributes implementation.

@syjer
Copy link
Member

syjer commented Jan 14, 2026

@maths22 release has been done. Thank you again for your contributions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants